
for x in list(range(100000)):
    if x == 5:
        break
    print(x)

for x in range(100000):
    if x == 5:
        break
    print(x)